#import "PrivatePhotosCollectionViewCell.h"
@implementation PrivatePhotosCollectionViewCell
{
    UILabel     *status;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    [self createUI];
}
-(void)createUI
{
    _imagevc = [[UIImageView alloc] init];
    _imagevc.image = [[CYCommon new] getEpmayImage];
    _imagevc.contentMode = UIViewContentModeScaleAspectFill;
    status = [[UILabel alloc] init];
    status.textColor = [UIColor whiteColor];
    status.text = ASLocalizedString(@"审核中");
    status.font = DEFAULT_FONT(18);
    [self addSubview:_imagevc];
    [self addSubview:status];
    [self setLayout];
}
-(void)setLayout
{
    [_imagevc mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self);
    }];
    [status mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self);
    }];
}
-(void)setModel:(PrivatePhotosModel *)model
{
    _model = model;
    if(model.status == 0)
    {
        status.hidden = NO;
    }
    else
    {
        status.hidden = YES;
    }
    [_imagevc sd_setImageWithURL:[cyurl safeUrl:model.img]];
}
@end
